// Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package main

import "fmt"

type Prefix struct {
	id int
	c  byte
}

func (p Prefix) equal(p2 Prefix) bool {
	return p.id == p2.id && p.c == p2.c
}

func (p Prefix) String() string {
	return fmt.Sprintf("%4.4d %c", p.id, p.c)
}
